Fig. 1: Faster download site.


Fig. 2: Assurez que Devel soit à Install


Fig. 3 Obtenir une distribution d'Ubuntu Linux. Vous pouvez utiliser sans installer OU installer.


Fig.4 installer flex à partir du terminal dans Ubuntu Linux

Working with flex:

  1. Console program.
    1. Reads instrutions from the console.
    2. Using pipes, reads from and writes to files.
    3. Uses the gcc C/C++ compiler
  2. Version used here:
    1. Different versions under Windows, Solaris, Unix and Linux.
    2. Slight differences between them (versions, age, underlying compiler, etc.)
    3. We will use the linux version.
  3. At the university.:
    1. Find X-32 in programs menu.
    2. Do a login as you do for SITE
    3. Chose a Linux desktop.
  4. In Windows:
    1. Cygwin has the same version as the SITE Linux servers.
    2. Not fully tested for assignments
      => yes, I had problems last year.
    3. Important:
      1. the installer asks for a download site (Fig.1):
        USherbrooke.ca is faster than others.
      2. Click on Devel (Fig. 2) to get Install (might take a while).
      3. This is also required if you want to use Win32 - gcc as a compiler for TAU.
  5. Through SSH / Putty
    1. This can be done from home or at SITE in Windows
    2. Get access to Linux servers through terminal clients.
      1. SSH - recommended by the university
        1. integrates console and file transfer GUI
      2. Putty (my favourite) - also available as PortableApps.com
        1. console only
      3. WinSCP (my favourite) - also available as PortableApps.com
        1. GUI for file transfer
        2. console simulator - less powerful than Putty
        3. Cofigurable for putty integration:
          [menu]>Options>Preferences 
    3. Accessing Linux servers at SITE:
      1. In SSH or Putty:
        1. your SITE user name
        2. your SITE password
        3. default parameters
      2. first, access SITE with the hostname
        ugate.site.uottawa.ca
      3. from there, access the Linux server
        linux.site.uottawa.ca
        => with the command line
        ssh -l siteUserName linux.site.uottawa.ca
      4. again, your SITE password.
  6. In Linux:
    1. Download and burn a distribution of Linux Live
      1. "Live" means that you can use the OS by booting from the CD.
      2. This is not installed => you don't mess-up your system.
      3. The university uses Fedora Core Project
      4. my favourite (Fig.1): one of the versions at
        http://www.ubuntu.com/products/whatisubuntu
    2. gcc is included
    3. flex must be installed (Fig.2), but it's easy and takes 20 seconds.
      1. your computer must be internet-ready
        1. Easiest if you have an ethernet wire-connection.
        2. Wireless should works like a charm as long as no fancy VPN is involved.
      2. Type the command line (assuming Ubuntu or other Debian):
        sudo apt-get install flex